<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>乘客管理</title>
    <!-- 引入公用部分 -->
    <script th:replace="common/head::static"></script>
</head>
<body>
<!--表格位置-->
<table class="layui-hide" id="passengerTable" lay-filter="test"></table>

<script type="text/html" id="toolbarPassenger">
    <div class="layui-inline" style="float:right;height:29px;" title="新增" lay-event="addData"><i class="layui-icon layui-icon-add-1"></i></div>
    <div class="layui-inline" style="float:right;height:29px;" title="搜索" lay-event="query"><i class="layui-icon layui-icon-search"></i></div>
    <input type="text" id="passengerText" style="width:200px;float:right;height:30px;" placeholder="请输入乘客名" autocomplete="off" class="layui-input">
</script>

<script type="text/html" id="barPassenger">
    <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
</script>

<!--编辑弹出框-->
<div class="passengerEditDiv">
    <!-- 操作表单 -->
    <form id="passengerForm" class="layui-form layui-form-pane">
        <div class="layui-form-item">
            <label class="layui-form-label">昵称</label>
            <div class="layui-input-block">
                <input type="text" id="mName" name="mName" autocomplete="off" placeholder="昵称"
                       lay-verify="required" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">联系方式</label>
            <div class="layui-input-block">
                <input type="text" id="mPhone" name="mPhone" autocomplete="off" placeholder="联系方式"
                       lay-verify="required" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">称呼</label>
            <div id="mSex" class="layui-input-block" style="width: 235px;">
                <input type="radio" name="mSex" value="0" title="先生" th:selected="true">
                <input type="radio" name="mSex" value="1" title="女士">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">头像</label>
            <div class="layui-input-block">
                <input type="text" id="mImg" name="mImg" autocomplete="off" placeholder="头像"
                       lay-verify="required" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">openid</label>
            <div class="layui-input-block">
                <input type="text" id="openId" name="openId" autocomplete="off" placeholder="openid"
                       lay-verify="required" class="layui-input">
            </div>
        </div>
        <!-- 隐藏域 -->
        <input type="text" id="mId" name="mId" hidden="hidden" value="-1"/>
    </form>
</div>

</body>
<link rel="stylesheet" lang="less" scoped type="text/css" th:href="@{mumu/passenger/passenger.css}"/>
<script th:src="@{mumu/passenger/passenger.js}"></script>
</html>